﻿@using JPW.OnlinePaperSubmissionSystem.Project
<form name="createOrEditWriterInformationForm" role="form" novalidate class="form-validation">
        <div class="modal-header">
            <h4 class="modal-title">
                <h4 class="modal-title">
                <span ng-if="vm.writerInformation.id">@L("UpdateWriterInformation"): {{vm.user.userName}}</span>
                <span ng-if="!vm.writerInformation.id">@L("CreateWriterInformation")</span>
            </h4>
            </h4>
        </div>
        <div class="modal-body">
      <div class="form-group form-md-line-input">
                <input class="form-control" type="text" name="UserId" ng-model="vm.writerInformation.userId" >
                <label>UserId</label>
            </div>
      <div class="form-group form-md-line-input">
                <input class="form-control" type="text" name="Sex" ng-model="vm.writerInformation.sex" >
                <label>Sex</label>
            </div>
      <div class="form-group form-md-line-input">
                <input class="form-control" type="text" name="IDCard" ng-model="vm.writerInformation.iDCard" >
                <label>IDCard</label>
            </div>
      <div class="form-group form-md-line-input">
                <input class="form-control" type="text" name="Post" ng-model="vm.writerInformation.post" >
                <label>Post</label>
            </div>
      <div class="form-group form-md-line-input">
                <input class="form-control" type="text" name="Telephone" ng-model="vm.writerInformation.telephone" >
                <label>Telephone</label>
            </div>
      <div class="form-group form-md-line-input">
                <input class="form-control" type="text" name="Unit" ng-model="vm.writerInformation.unit" >
                <label>Unit</label>
            </div>
            
        </div>
        <div class="modal-footer">
            <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button>
            <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save()" ng-disabled="createWriterInformationForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button>
        </div>
    </form>

